#ifndef BANK_XX_H
#define BANK_XX_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <dirent.h>
#include <string.h>
#include <fcntl.h>
#include <signal.h>
#include <string.h>
#include <time.h>  
#include <sys/time.h>

extern const int key1;
extern const int key2;

#define M_OPEN 1
#define M_DESTORY 2
#define M_SAVE 3
#define M_WITHDRAW 4
#define M_QUERY 5
#define M_TRANSFER 6
#define M_SUCCESS 7
#define M_FAIL 8


struct Account
{
	int num;
	char name[100];
	char pwd[20];
	double balance;	
};

struct Msg
{
	long mtype; //6 kinds of type
	struct Account acc[2];
};


#endif
